<?php if (!defined('THINK_PATH')) exit();?>	<!-- 分享弹出窗 -->
	<div model-node='share_model' class="pop-share">
	<div class="mod-tab-menu" >
    <span class="left"><?php echo L('PUBLIC_SHARETO');?>：</span>
	    <div class="tab-menu-app left">
	        <ul>
	        	<?php if(($canShareFeed)  ==  "1"): ?><li class="current"><a href='javascript:void(0)' event-node='share_menu' event-args='to=weibo'><?php echo L('PUBLIC_MY_WEIBO');?></a></li>
	            <li ><a href='javascript:void(0)' event-node='share_menu' event-args='to=people'>我的好友</a></li>
	            <?php else: ?>
	            <li class="current"><a href='javascript:void(0)' event-node='share_menu' event-args='to=people'>我的好友</a></li><?php endif; ?>
	        </ul>
	    </div>
	</div>
      <div class="forward-content">
        <?php if($oldInfo['is_del'] == 1): ?>
        内容已被删除
        <?php else: ?>
      	<a href='<?php echo ($oldInfo["source_user_info"]["space_url"]); ?>' target='_blank'><?php echo ($oldInfo["source_user_info"]["uname"]); ?></a>
      	<p>
      	<?php $sourceInfo = $oldInfo; ?>
      		<?php if(($shareInfo["shareHtml"])  !=  ""): ?><?php echo ($shareInfo["shareHtml"]); ?>
      		<?php else: ?> 
      		<?php echo (parse_html($sourceInfo["source_content"])); ?><?php endif; ?>	
      	</p>
        <?php endif; ?>
      </div>
      	<div class="feed-repeat">
      	<?php if(($canShareFeed)  ==  "1"): ?><div class="input" model-node='share_input' event-args='to=weibo' style="position:static" id='share_input'>
        	 <?php echo W('SendWeibo',array('send_type'=>'repost_weibo','oldUid'=>$oldInfo['source_user_info']['uid'],'space_link'=>$oldInfo['source_user_info']['space_link'],'sid'=>$shareInfo['sid'],'app_name'=>$shareInfo['appname'],'stype'=>$shareInfo['stable'],'initHtml'=>$shareInfo['initHTML'],'curid'=>$shareInfo['curid'],'curtable'=>$shareInfo['curtable'],'cancomment'=>$shareInfo['cancomment']));?>
        </div>
        <div class="input" model-node='share_input' event-args='to=people' style='display:none;position:static'>
        <?php else: ?>
        <div class="input" model-node='share_input' event-args='to=people' style="position:static"><?php endif; ?>
        <div id='share_message'>
        		<div class="fw mb5">选择好友</div>
          	 	<div class="clearfix"><?php echo W('SearchUser',array('max'=>1));?></div>
      		<div model-node='share_comment_box' class="mb5">
			<div class="pt10 fw fold"  model-node='add_comment'><?php echo L('PUBLIC_ADD_COMMENT');?><i class="arrow-open ml10"></i></div>
			<div class="feed-repeat" model-node='share_message'  style='display:none'>		
	  			<div class="action clearfix mt10"><div class="num"  model-node="numsLeft"><?php echo L('PUBLIC_INPUT_CHARACTER_LIMIT',array('num'=>"<span>".$initNums."</span>"));?></div></div>
	  			<div model-node='weibo_post_box'>
	      		<div class="input_before mt10" model-node="mini_editor" style="height:60px;padding:4px" >
	      		<div model-node='facediv' rel="facediv" style="top:-10px"> </div>
					<textarea class="input_tips" id="share_inputor" event-node="mini_editor_textarea" hidefocus="true" event-args='parentHeight=60' style="height:52px;width:98%"><?php echo ($shareInfo['initHTML']); ?></textarea>
				</div>
				</div>
	     	</div>
     		</div>
           <div class="action clearfix center">
      <a href="javascript:void(0);" id="dosendmessage" class="btn-green-big right" event-node ="share_message" event-args="sid=<?php echo ($shareInfo['sid']); ?>&app_name=<?php echo ($shareInfo['appname']); ?>&type=<?php echo ($shareInfo['stable']); ?>&curid=<?php echo ($shareInfo['curid']); ?>&curtable=<?php echo ($shareInfo['curtable']); ?>"><span><?php echo L('PUBLIC_SHARE_STREAM');?></span></a>
           </div>
       </div> 
       </div> 
          </div>
 <script>

 core.loadFile(THEME_URL+'/js/plugins/core.at.js');
 
 core.loadFile(THEME_URL+'/js/module.share.js',function(){
  //去掉小名片
  $('#tsbox').find('a').each(function(){
    if($(this).attr('event-node') == 'face_card'){
      $(this).attr('event-node','no_face_card');
    }
  });
  core.loadFile(THEME_URL+'/js/module.weibo.js',function(){
      M(document.getElementById('tsbox'));
  });
 });
atWho($('#share_inputor'));
 //快捷方式
 shortcut('ctrl+return', sendmessage , {target:'share_message'});
 function sendmessage(){
	 document.getElementById('dosendmessage').click();
 }
 setTimeout(function (){
	 $('#message_inputor').focus();
 },300)
 </script>